<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>添加活动</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../lib/layui-v2.6.3/css/layui.css" media="all">
    <link rel="stylesheet" href="../css/public.css" media="all">
    <link rel="stylesheet" href="../lib/jq-module/zyupload/zyupload-1.0.0.min.css" media="all">

    <style>
        body {
            background-color: #ffffff;
        }

        #find {
            background-color: #4D67F8;
        }
    </style>
</head>

<body>
    <div class="layui-form layuimini-form">
        <div class="layui-form-item">
            <label class="layui-form-label required">修改意见</label>
            <div class="layui-input-block">
                <textarea name="content" placeholder="请输入修改意见" class="layui-textarea"></textarea>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label"> </label>
            <!-- <label class="layui-form-label"> </label> -->
            <div style="line-height:90px;height:90px;">
                <button id="find" class="layui-btn layui-btn-normal" style="margin-left: 100px;" lay-filter="saveBtn"
                    lay-submit="">确定</button>
            </div>

        </div>

    </div>


    <script src="../lib/layui-v2.6.3/layui.js" charset="utf-8"></script>
    <script src="../js/lay-config.js?v=1.0.4" charset="utf-8"></script>
    <script>
        layui.use(['form', 'jquery', 'upload'], function () {
            var $ = layui.jquery,
                form = layui.form,
                layer = layui.layer,
                upload = layui.upload;
            //监听提交
            form.on('submit(saveBtn)', function (data) {
                data1 = data.field;
                var content = data1.content
                var aname = localStorage.getItem('aname');
                $.get('/auditActivity', {
                    status: 2,
                    aname: aname,
                    content: content
                }, function (re) {
                    if (re == '1') {
                        layer.msg('建议提交成功！');
                    } else {
                        layer.msg('建议提交失败！');
                    }
                    return false;
                });
            });
        });
    </script>
</body>

</html>